<template>
    <div class="app-container">
        <router-view/>
    </div>
</template>

<script>
export default {
    name: 'App'
}
</script>

<style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    font-size: 14px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.app-container {
    min-height: 100vh;
    position: relative;
    padding-bottom: 0; /* 不为底部导航栏留出额外空间 */
    overflow-x: hidden;
}

/* 全局响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .app-container {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .app-container {
        padding-bottom: 70px;
    }
}
</style>
